Inheritance diagram for Exponent::GUI::Controls::CSlider:

Definition at line 39 of file CSlider.hpp.
| Exponent::GUI::Controls::CSlider::CSlider | ( | IControlRoot * | root, | |
| const long | uniqueId, | |||
| const CRect & | area, | |||
| IActionListener * | listener = NULL | |||
| ) |
Construction
| root | The root control that this control is being added to | |
| uniqueId | The unique Identifier of this control or CCONTROL_NO_ID_REQUIRED if no id is required | |
| area | The area of this control relative to the root controls top left | |
| listener | The action listener |
| virtual Exponent::GUI::Controls::CSlider::~CSlider | ( | ) | [virtual] |
Destruction
| virtual void Exponent::GUI::Controls::CSlider::checkAndLock | ( | const CPoint & | point | ) | [protected, virtual] |
Check if the area is rolled over and lock if it is
| point | The point to check |
| virtual void Exponent::GUI::Controls::CSlider::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the controls
| graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControl.
Reimplemented in Exponent::GUI::Controls::CScrollBar.
| virtual bool Exponent::GUI::Controls::CSlider::drawEnabledControl | ( | CGraphics & | graphics | ) | [protected, virtual] |
Check if the control is enabled. If it isnt, draw the disabled background and return
| graphics | The graphics context |
| bool | TRue if should draw, false if disabled / shouldnt draw |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSlider::handleLeftButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being clicked
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSlider::handleLeftButtonUp | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being released
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSlider::handleMouseLeavingArea | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse leaving the window area
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSlider::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSlider::handleMouseScroll | ( | CMouseEvent & | event | ) | [virtual] |
Handle the scroll wheel
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSlider::setColours | ( | CAlphaColour | frameColour, | |
| CAlphaColour | backgroundColour, | |||
| CAlphaColour | handleColour, | |||
| CAlphaColour | handleOverColour, | |||
| CAlphaColour | handleDownColour | |||
| ) | [virtual] |
Set the colours
| frameColour | The colour of the frame | |
| backgroundColour | The background colour of the control | |
| handleColour | The colour of the area that can be grabbed by the user | |
| handleOverColour | The colour of the area that can be grabbed by the user when mouse is over | |
| handleDownColour | The colour of the area that can be grabbed by the user when mouse is grabbing it |
| virtual void Exponent::GUI::Controls::CSlider::setSliderImages | ( | IImage * | sliderHandle, | |
| IImage * | sliderOver, | |||
| IImage * | sliderDown, | |||
| IImage * | sliderDisabled | |||
| ) | [virtual] |
Set the slider images
| sliderHandle | The image of the area that can be grabbed by the user | |
| sliderOver | The image of the area that can be grabbed by the user when mouse is over | |
| sliderDown | The image of the area that can be grabbed by the user when mouse is grabbing it | |
| sliderDisabled | The image of the area that can be grabbed by the user when the control is disabled |
| virtual void Exponent::GUI::Controls::CSlider::setValue | ( | const double | value | ) | [virtual] |
Set the value of the slider
| value | The value of the slider (0 - 1 range) |
Reimplemented from Exponent::GUI::Controls::CControl.
CPoint Exponent::GUI::Controls::CSlider::m_grabOffset [protected] |
What is the offset to where they grabbed?
Definition at line 159 of file CSlider.hpp.
CAlphaColour Exponent::GUI::Controls::CSlider::m_handleColour [protected] |
Colour of the slider
Definition at line 167 of file CSlider.hpp.
CAlphaColour Exponent::GUI::Controls::CSlider::m_handleDownColour [protected] |
Colour of the slider when mouse is down
Definition at line 169 of file CSlider.hpp.
CAlphaColour Exponent::GUI::Controls::CSlider::m_handleOverColour [protected] |
Colour of the slider when mouse is over
Definition at line 168 of file CSlider.hpp.
bool Exponent::GUI::Controls::CSlider::m_isDragging [protected] |
Are we dragging the slider
Definition at line 163 of file CSlider.hpp.
bool Exponent::GUI::Controls::CSlider::m_isVertical [protected] |
Is the slider vertical?
Definition at line 162 of file CSlider.hpp.
IImage* Exponent::GUI::Controls::CSlider::m_sliderDisabledImage [protected] |
The disabled image
Definition at line 156 of file CSlider.hpp.
IImage* Exponent::GUI::Controls::CSlider::m_sliderDownImage [protected] |
The down image
Definition at line 155 of file CSlider.hpp.
IImage* Exponent::GUI::Controls::CSlider::m_sliderHandleImage [protected] |
The slider image
Definition at line 153 of file CSlider.hpp.
IImage* Exponent::GUI::Controls::CSlider::m_sliderOverImage [protected] |
The over image
Definition at line 154 of file CSlider.hpp.
CRect Exponent::GUI::Controls::CSlider::m_sliderPosition [protected] |
The position of the slider
Definition at line 158 of file CSlider.hpp.
double Exponent::GUI::Controls::CSlider::m_sliderRange [protected] |
The range of the slider
Definition at line 165 of file CSlider.hpp.
Current state of slider (0 = off : 1 = over : 2 = on)
Definition at line 161 of file CSlider.hpp.